//农客接口域名，机场专线域名
const url1 = 'https://chuxing.mbxing.com/api/';
//机场专线域名//	12测试
const url2 = 'https://bd.xmjdt.net:8007/api/';
//接口域名
const commonURL = require('../config/url.js');
const url = commonURL.Url;
//接口对象
const expressInterface = {
	appSystemCode: {
		// #ifdef APP-PLUS
		appSystemCode: '南平综合出行APP',
		// appSystemCode:'XMJDTTest'
		// #endif
		// #ifdef H5
		appSystemCode: '南平综合出行H5'
		// #endif
		// #ifdef MP-WEIXIN
		appSystemCode: '南平综合出行小程序'
		 // appSystemCode:'XMJDTTest'
		  // appSystemCode:'漳州哒哒通小程序'
		  // appSystemCode:'武夷交运微信'
		// #endif 
	},
	// ----------------------------------司机测试-----------------------------------------
	
	// ----------------------------------闽北行小程序-----------------------------------------
	GetLoginByTel: {
		url: url + 'GetLoginByTel',
		name: '用户登录',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetSystemModular: {
		url: url + 'GetSystemModular',
		name: '获取首页模块信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	Cancle: {
		url: url + 'Cancle',
		name: '取消订单',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetAgainPay: {
		url: url + 'GetAgainPay',
		name: '再次支付',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	ChangeSignClick: {
		url: url + 'ChangeSignClick',
		name: '改签',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetRegisterByTel: {
		url: url + 'GetRegisterByTel',
		name: '用户注册',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetSmsByTel: {
		url: url + 'GetSmsByTel',
		name: '短信验证码',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetUserInfoByCode: {
		url: url + 'GetUserInfoByCode',
		name: '微信授权登录',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetSiteNameByCode: {
		url: url + 'GetSiteNameByCode',
		name: '获取上下车站点',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetVehicleLocationByCode: {
		url: url + 'GetVehicleLocationByCode',
		name: '获取车辆定位经纬度',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetSiteByKey: {
		url: url + 'GetSiteByKey',
		name: '关键字获取站点',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetCoachInfoBySite: {
		url: url + 'GetCoachInfoBySite',
		name: '查询班次信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetCoachInfoTypeBySite: {
		url:url +'GetCoachInfoTypeBySite',
		name: '查询班次信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetSchedulePrice: {
		url:url +'GetSchedulePrice',
		name: '查询班次信息(可查单个)',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	
	GetSiteLocationByID: {
		url: url + 'GetSiteLocationByID',
		name: '获取线路站点经纬度',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetFlowIdByParam: {
		url: url + 'GetFlowIdByParam',
		name: '开启订票流程',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetRedictByFlowId: {
		url: url + 'GetRedictByFlowId',
		name: '查询订票流程状态',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetBounceChargeByBookLogAID: {
		url: url + 'GetBounceChargeByBookLogAID',
		name: '查询退票率',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetRefundFlowIdByBooklogAID: {
		url: url + 'GetRefundFlowIdByBooklogAID',
		name: '开启退票流程',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	RefundPageRedict: {
		url: url + 'RefundPageRedict',
		name: '查询退票流程状态',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetAuthenticationByTel: {
		url: url + 'GetAuthenticationByTel',
		name: '用户完善信息（授权绑定手机号）',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetContactsInfoByID: {
		url: url + 'GetContactsInfoByID',
		name: '查询乘车人信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetContactsDeleteByID: {
		url: url + 'GetContactsDeleteByID',
		name: '删除乘车人信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetContactsAddByID: {
		url: url + 'GetContactsAddByID',
		name: '新增乘车人信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetContactsUpdateByID: {
		url: url + 'GetContactsUpdateByID',
		name: '编辑乘车人信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetMidwaySiteNameByCode: {
		url: url + 'GetMidwaySiteNameByCode',
		name: '获取地图站点信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetBookLogByID: {
		url: url + 'GetBookLogByID',
		name: '获取订单信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetNewestByID: {
		url: url + 'GetNewestByID',
		name: '获取最新订单数据',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetTravelmodeBySite: {
		url: url + 'GetTravelmodeBySite',
		name: '获取最新订单数据',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetSiteLocationByName: {
		url: url + 'GetSiteLocationByName',
		name: '获取当前行程经纬度',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetBooklogByParam: {
		url: url + 'GetBooklogByParam',
		name: '定制巴士下单',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetMidwayLineByCode: {
		url: url + 'GetMidwayLineByCode',
		name: '查询线路，选完上车点直接调这个接口',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetScheduleByLineID: {
		url: url + 'GetScheduleByLineID',
		name: '根据线路ID查询班次信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetScheduleByStarEndSite: {
		url: url + 'GetScheduleByStarEndSite',
		name: '城际快车查询班次信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetStarSiteNameByLocation: {
		url: url + 'GetStarSiteNameByLocation',
		name: '乘客端推荐上车点',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetTicketInstructionsMemo: {
		url: url + 'GetTicketInstructionsMemo',
		name: '获取购票须知',
		method: 'POST',
		header: { 
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetSchoolBusMemo: {
		url: url + 'GetSchoolBusMemo',
		name: '获取购票须知',
		method: 'POST',
		header: { 
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetRenewAnnouncementMemo: {
		url: url + 'GetRenewAnnouncementMemo',
		name: '获取更新公告',
		method: 'POST',
		header: { 
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetTicketChangeMemo: {
		url: url + 'GetTicketChangeMemo',
		name: '获取改签须知',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetTicketRefundMemo: {
		url: url + 'GetTicketRefundMemo',
		name: '获取退票须知',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetInsureMemo: {
		url: url + 'GetInsureMemo',
		name: '获取保险须知',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetUserInfoByJsCode: {
		url: url + 'GetUserInfoByJsCode',
		name: '微信小程序授权',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetUserPhoneByJsKey: {
		url: url + 'GetUserPhoneByJsKey',
		name: '获取手机号',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetBookStateByID: {
		// string userid, string appSystemCode, string bookLogAID
		url: url + 'GetBookStateByID',
		name: '查询购票流程状态',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetOperationLog: {
		// string StartSiteName, string EndSiteName, string PhoneNumber,string appSystemCode,string BookType,ExecuteDate(选择日期)，ScheduleLength（班次列表长度）
		url: url + 'GetOperationLog',
		name: '记录用户下单页操作',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetModularOperationLog: {
		// string PhoneNumber, string appSystemCode, string ModularName
		url: url + 'GetModularOperationLog',
		name: '记录用户首页操作',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetReceiptByInsureInfo:{
		url: url + 'GetReceiptByInsureInfo',
		name: '发送保险电子发票申请',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	SetPromoterLog:{
		url: url + 'SetPromoterLog',
		name: '小程序推广日志',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetPromoterNum:{
		url: url + 'GetPromoterNum',
		name: '查询推广人数',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetUserByPhoneNumber: {
		// string PhoneNumber, string openid
		url: url + 'GetUserByPhoneNumber',
		name: '绑定手机号',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	// GetBookLogInfoByID(string bookLogAID)
	GetBookLogInfoByID: {
		url: url + 'GetBookLogInfoByID',
		name: '获取订单详情',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	//GetParamValueByName(string ParamName)
	GetParamValueByName: {
		url: url + 'GetParamValueByName',
		name: '获取使用手册的富文本',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	// ----------------------------------南平乡镇客运模块-----------------------------------------
	GetNearbyVehicles: {
		url: url1 + 'TownshipModular/GetNearbyVehicles',
		name: '根据旅客当前位置查询范围内车辆信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetLineTrack: {
		url: url1 + 'TownshipModular/GetLineTrack',
		name: '根据线路ID查询线路轨迹',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetLoadByStartAndEndSite: {
		url: url1 + 'TownshipModular/GetLoadByStartAndEndSite',
		name: '根据出发到达地查询开通线路',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetVehiclesToLineID: {
		url: url1 + 'TownshipModular/GetVehiclesToLineID',
		name: '根据LineID获取车辆位置信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetNearbySite: {
		url: url1 + 'TownshipModular/GetNearbySite',
		name: '根据定位、线路ID获取距离最近的站点',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetTownshipLineInfo: {
		url: url1 + 'TownshipModular/GetTownshipLineInfo',
		name: '根据LineType查询线路信息',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetSiteBySiteName: {
		url: url1 + 'TownshipModular/GetSiteBySiteName',
		name: '根据站点名查询站点信息、图片',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	// ----------------------------------机场专线模块-----------------------------------------
	GetLogs: {
		url: url1 + 'AirTrain/GetLogs',
		name: '查询日志',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
	GetAirBookInfosByID: {
		url: url1 + 'AirTrain/GetAirBookInfosByID',
		name: '获取订单详情',
		method: 'POST',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
	},
}


export default {
	expressInterface
}
